package com.hex.ds.hdrs.warn.dao;

import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.bigdata.hbda.base.Page;
import com.hex.ds.hdrs.warn.po.WarnConf;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author lwz
 * @date 2021-01-25
 * @des
 */
@Repository
public class WarnConfDao extends BaseDao {
    public void add(WarnConf warnConf) {
        this.insert("com.hex.ds.hdrs.warn.dao.WarnConfDao.insert", warnConf);
    }

    public List<WarnConf> qryWarnConfList(Map map, Page page) {
        return this.selectPage(WarnConf.class, "com.hex.ds.hdrs.warn.dao.WarnConfDao.selectAll", page, map);
    }

    public void del(String pkId) {
        this.delete("com.hex.ds.hdrs.warn.dao.WarnConfDao.del", pkId);
    }

    public WarnConf getEditWarnConf(String pkId) {
        return this.selectOne(WarnConf.class, "com.hex.ds.hdrs.warn.dao.WarnConfDao.getEditWarnConf", pkId);
    }

    public void edit(WarnConf warnConf) {
        this.update("com.hex.ds.hdrs.warn.dao.WarnConfDao.edit", warnConf);
    }

    public List<WarnConf> selectWarnConfList(Map map) {
        return this.selectList(WarnConf.class, "com.hex.ds.hdrs.warn.dao.WarnConfDao.selectWarnConf",map);
    }

    public List<WarnConf> getOffAgentInfo(Map map) {
        return this.selectList(WarnConf.class,"com.hex.ds.hdrs.warn.dao.WarnConfDao.getOffAgentInfo",map);
    }

    public Integer validateParam(String param9){
        return this.selectOne(Integer.class,"com.hex.ds.hdrs.warn.dao.WarnConfDao.validateParam",param9);
    }

    public List<WarnConf> getAppointTaskWarnList(Map map){
        return this.selectList(WarnConf.class, "com.hex.ds.hdrs.warn.dao.WarnConfDao.getAppointTaskWarnList", map);
    }
}
